function QueryStr(strName) {
	var strHref = window.document.location.href;
	var intPos = strHref.indexOf("?");
	var strRight = strHref.substr(intPos + 1);
	var arrTmp = strRight.split("&");
	for (var i = 0; i < arrTmp.length; i++) {
		var arrTemp = arrTmp[i].split("=");
		if (arrTemp[0].toUpperCase() == strName.toUpperCase()) {
			return arrTemp[1];
		}
	}
	return "";
}
function ImgWorH(ImgObj, xWidth, xHeight) {
	var w = ImgObj.width;
	var h = ImgObj.height;
	var scale_x = w / xWidth;
	var scale_y = h / xHeight;
	if (w > xWidth || h > xHeight) {
		if (scale_x > scale_y) {
			ImgObj.width = xWidth;
			ImgObj.height = h * xWidth / w;
		} else {
			ImgObj.width = w * xHeight / h;
			ImgObj.height = xHeight;
		}
	}
}

